import { AppRouteRecordRaw } from '@renderer/router/routes/types'
import { DEFAULT_LAYOUT } from '@renderer/router/routes/base'

const USERSYS: AppRouteRecordRaw = {
  path: '/userSys',
  name: 'userSys',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '账号系统',
    icon: 'icon-user',
    requiresAuth: true,
    order: 3
  },
  children: [
    {
      path: 'userManage',
      name: 'userManage',
      meta: {
        locale: '账号管理',
        requiresAuth: true,
        roles: ['*'],
        hideChildrenInMenu: true
      },
      component: () => import('@renderer/views/userManage/index.vue')
    }
  ]
}

export default USERSYS
